package com.reborn.mall.api.service;

import com.reborn.mall.api.model.entity.AppUser;

import java.util.Optional;

/**
 * TODO: Here is description
 *
 * @author wu.yue
 * @since 2020/2/29
 */
public interface AppUserService extends BaseService<AppUser> {

    AppUser getUserByUsername(String username);

    AppUser register(AppUser appUser);

    String login(String username, String password);

    Optional<AppUser> getCurrentUser();
}
